<%--
  Created by IntelliJ IDEA.
  User: zjy
  Date: 2015/4/13
  Time: 16:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools"/>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="studioList" title="" actionUrl="studioController.do?datagrid2" idField="studioId" fit="true"
                    queryMode="group">
            <t:dgCol title="studioId" field="studioId" hidden="true"></t:dgCol>
            <t:dgCol title="工作室" field="name" query="true" width="2"></t:dgCol>
            <t:dgCol title="封禁" field="isAuth" dictionary="isno" query="true"></t:dgCol>
            <t:dgCol title="创建人" field="consultantEntity.aCustomerEntity.realname" width="1" query="true"></t:dgCol>
            <%--<t:dgCol title="审核状态" field="isReview" dictionary="review" query="true"></t:dgCol>--%>
            <t:dgCol title="创建时间" formatter="yyyy-MM-dd hh:mm:ss" field="createTime" width="1"></t:dgCol>
            <t:dgCol title="是否专家工作室" field="consultantEntity.isExpert" dictionary="isno"></t:dgCol>
            <t:dgCol title="排序" field="sort"></t:dgCol>

            <t:dgCol title="操作" field="opt" width="1"></t:dgCol>
            <%--<t:dgFunOpt funname="f_review(studioId)" title="审核" exp="isReview#eq#11"></t:dgFunOpt>--%>
            <t:dgOpenOpt url="studioController.do?review&id={studioId}&type=1" title="查看" width="1000"
                         height="500"></t:dgOpenOpt>
            <t:dgFunOpt funname="f_sortOrder(studioId)" title="排序"></t:dgFunOpt>
            <t:dgConfOpt url="studioController.do?forbidden&id={studioId}" exp="isAuth#eq#0" title="封禁"
                         message="确定封禁本工作室？"></t:dgConfOpt>
            <t:dgConfOpt url="studioController.do?forbidden&id={studioId}" exp="isAuth#eq#1" title="解封"
                         message="确定封禁本工作室？"></t:dgConfOpt>

            <t:dgToolBar title="新增" icon="icon-add" url="studioController.do?addorupdate" funname="add"  width="1000" height="500"></t:dgToolBar>
            <%--<t:dgToolBar title="修改" icon="icon-edit" url="bankController.do?addorupdateView" funname="f_updateBankfInfo"  width="600" height="500"></t:dgToolBar>--%>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    function f_sortOrder(studioId) {
        var title = "排序";
        var width = 300;
        var height = 100;
        var url = "studioController.do?sortOrder&id=" + studioId;
        createwindow(title, url, width, height);
    }


</script>